package com.castle.fortress.admin.orders.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.Date;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 订单详情 实体类
 *
 * @author Mgg
 * @since 2023-01-13
 */
@Data
@ApiModel(value = "goodsOrderItem对象", description = "订单详情")
public class GoodsOrderItemDto implements Serializable {
	private static final long serialVersionUID = 1L;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "主键ID")
	@JsonProperty("id")
	private Long id;
	@ApiModelProperty(value = "订单号")
	@JsonProperty("orderNumber")
	private Long orderNumber;
	@ApiModelProperty(value = "商品id")
	@JsonProperty("goodsId")
	private Long goodsId;
	@ApiModelProperty(value = "商品名称")
	@JsonProperty("goodsName")
	private String goodsName;
	@ApiModelProperty(value = "商品缩略图")
	@JsonProperty("goodsImg")
	private String goodsImg;
	@ApiModelProperty(value = "商品总价")
	@JsonProperty("goodsTotalAmount")
	private BigDecimal goodsTotalAmount;
	@ApiModelProperty(value = "商品数量")
	@JsonProperty("goodsCount")
	private Integer goodsCount;
	@ApiModelProperty(value = "商品实付单价")
	@JsonProperty("goodsRealPrice")
	private BigDecimal goodsRealPrice;
	@ApiModelProperty(value = "商品单价")
	@JsonProperty("goodsPrice")
	private BigDecimal goodsPrice;
	@ApiModelProperty(value = "评论状态： 0 未评价  1 已评价")
	@JsonProperty("commSts")
	private Integer commSts;
	@ApiModelProperty(value = "商品规格ids (为以后统计 如规则被删不做处理)")
	@JsonProperty("spec")
	private String spec;
	@ApiModelProperty(value = "规格名称 例如 红色/XL/纯棉")
	@JsonProperty("specName")
	private String specName;
	@ApiModelProperty(value = "维权状态")
	@JsonProperty("orderStatus")
	private Integer orderStatus;
	@ApiModelProperty(value = "备注")
	@JsonProperty("remark")
	private String remark;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "创建者")
	@JsonProperty("createUser")
	private Long createUser;
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty(value = "创建时间")
	@JsonProperty("createTime")
	private Date createTime;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "更新者")
	@JsonProperty("updateUser")
	private Long updateUser;
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty(value = "更新时间")
	@JsonProperty("updateTime")
	private Date updateTime;
	@ApiModelProperty(value = "状态")
	@JsonProperty("status")
	private Integer status;
	@ApiModelProperty(value = "删除状态 YesNoEnum。 yes删除；no未删除")
	@JsonProperty("isDeleted")
	private Integer isDeleted;
	@ApiModelProperty(value = "创建者姓名")
	@JsonProperty("createUserName")
	private String createUserName;



	@ApiModelProperty(value = "购物车对应ID")
	@JsonProperty("cartId")
	private Long cartId;

}
